//
//  DownLoadTool.h
//  lisure0.1
//
//  Created by xalo on 16/4/25.
//  Copyright © 2016年 Mr.wangYongxu. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^DownLoading)(float progress);
typedef void(^CompleteDownLoad)(NSString* filePath,PlayInfoModel* model);

@protocol DownLoadToolDelegate <NSObject>

-(void)downLoadidiFinishedUrl:(NSString*)url;

@end
@interface DownLoadTool : NSObject
@property(nonatomic, assign)id<DownLoadToolDelegate>delegate;

-(instancetype)initWithMoldel:(PlayInfoModel*)model;
-(void)startDownLoad;
-(void)pauseDownLoad;
-(void)cancelDownLoad;

-(void)didDownLoading:(DownLoading)downLoading complete:(CompleteDownLoad)complete;

@end
